/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-11-13
 * Time:11:43
 */
class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("线程被创建1");
        System.out.println("线程被创建2");
    }
}
public class thread1 {
    public static void main(String[] args) {
        MyThread t = new MyThread();
        System.out.println("开始：");
        t.start();
        int i  = 0;
        while (i < 500) {
            System.out.println("主线程1");
            System.out.println("主线程1");
            i++;
        }
    }

}
